/**
 *
 */
package name.yzhu.index.stem;

import java.io.File;
import java.io.IOException;
import java.util.List;

import name.yzhu.common.conf.AbstractConfig;
import name.yzhu.common.yaml.YamlItem;

/**
 * @author yhzhu
 *
 */
public interface IStem {
	public static final Object DEFAULT_WORD_SPLIT = " ";

	public void open()  throws IOException;

	public void open(File dictPath)  throws IOException;

	public void close() throws IOException;

	public void setDictPath(File file);

	public boolean checkAndReloadDict() throws IOException;

	public String stem(String text) throws IOException;

	public List<String> stemToList(String text) throws IOException;

	public YamlItem stem(YamlItem yaml, AbstractConfig stemCfg)throws IOException;

}
